package com.blb.zy_community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zy_community.entity.ZyVisitor;
import com.blb.zy_community.mapper.ZyVisitorMapper;
import com.blb.zy_community.service.IZyVisitorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 访客邀请  服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class ZyVisitorServiceImpl extends ServiceImpl<ZyVisitorMapper, ZyVisitor> implements IZyVisitorService {
    @Autowired
    private ZyVisitorMapper zyVisitorMapper;

    @Override
    public Page<ZyVisitor> FindVisitor(Long current, Long size, String visitorName, String visitorPhoneNumber, String visitorDate) {
        return zyVisitorMapper.selectVisitorPage(new Page<>(current,size),visitorName,visitorPhoneNumber,visitorDate);
    }
}
